unit DeskForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls;

type
  TDesk = class(TForm)
    Scr: TImage;
    procedure FormResize(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Desk: TDesk;

implementation

{$R *.dfm}

procedure TDesk.FormResize(Sender: TObject);
var k: real;
begin
  k := Screen.Width / Screen.Height;
  Desk.Height := round( Desk.Width div 2 );
end;

end.
